package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.qc.CommonDefect;

/**
 * @ Description:
 * @ Author: 戴着假发的程序员
 * @ Date: 2025/9/20 - 16:11
 */
public interface CommonDefectService {
    /**
     * 多条件分页查询
     * @param commonDefect
     * @param pageNum
     * @param pageSize
     * @return
     */
    Result<PageInfo<CommonDefect>> selectList(CommonDefect commonDefect,int pageNum,int pageSize);

    Result save(CommonDefect commonDefect);

    Result updateById(CommonDefect commonDefect);

    Result deleteById(Long id);

    Result batchDelete(Long[] ids);

    Result<CommonDefect> selectById(Long id);
}
